package com.cdtu.mapper;

import com.cdtu.entity.RUserSpeciality;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Sakura
* @description 针对表【r_user_speciality】的数据库操作Mapper
* @createDate 2023-01-13 16:15:49
* @Entity com.cdtu.entity.RUserSpeciality
*/
@Mapper
public interface RUserSpecialityMapper extends BaseMapper<RUserSpeciality> {
    List<Long> findByUserId(@Param("user_id") long user_id);


//    RUserSpeciality findDetialBySpecialityIdAndUserId(@Param("specialityId") Long specialityId, @Param("userId") Long userId);

    RUserSpeciality findIdAndDetialByUserIdAndSpecialityId(@Param("userId") Long userId, @Param("specialityId") Long specialityId);

    boolean deleteByUid(@Param("uid") long uid);
}




